package javase.io;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileDemo05 {

	public static void main(String[] args) {
		File f=new File("/Workroom/java_room/workspace3.6/filedemo","file");
		String str1="1234567";
		byte[] b={1,2,3,4,5,6,7};
		byte[] b1=str1.getBytes();
		try {
			FileOutputStream f1=new FileOutputStream(f);
			f1.write(b);
			f1.write(b1);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}
	

}
